/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package nyrestaurantpaymentsystem;

import java.util.*;

/**
 *
 * @author Administrator
 */
public class MoneyTimer {
 
    private double[] doubleArraymoney;
    private Table[] tablesArray = new Table[4];
    private int numberOfTables;
    private Timer timer;
    
    public MoneyTimer()
    {
       timer = new Timer();
       //timer.scheduleAtFixedRate(timertask, 0, 1000)
       doubleArraymoney = new double[4];
    } 
    
    public void addTimerTask(MoneyTask mt)
    {
        timer.scheduleAtFixedRate(mt, 0, 1000);
    }
    
    public Timer getTimer()
    {
        return timer;
    }
    
    public double getMoney(int i)
    {
        return doubleArraymoney[i];
    }
    
    
    
    
}
